package com.jiyun.fegin;

import com.github.pagehelper.PageInfo;
import com.jiyun.common.model.PaperMc;

import com.jiyun.common.model.PaperVO;
import com.jiyun.common.model.Question;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @projectName: 2210A-project1
 * @package: com.jiyun.fegin
 * @className: PaperFegin
 * @author: 耿嘉军
 * @date: 2023/8/29 17:11
 * @version: 1.0
 */
@FeignClient(value = "day07paper")
public interface PaperFegin {

    @RequestMapping("/paper/findQuestionByPaper")
    public List<Question> findQuestionByPaper(@RequestParam("paperId") Integer paperId);

    @RequestMapping("/paper/findPaperAll")
    public PageInfo<PaperVO> findPaperAll(@RequestBody PaperMc dto);


}
